package org.studle.services;

import java.util.Date;

import org.studle.data.GenericDAO;
import org.studle.domain.*;

public class ScheduleService {
	private GenericDAO<String, ScheduleEntry> scheduleEntryDataAccessor 
		= new GenericDAO<String, ScheduleEntry>();
	
	public void addEventToSchedule(Event event, Date startDate){
		ScheduleEntry se = new ScheduleEntry(event, startDate);
		scheduleEntryDataAccessor.createRecord(se.getID(), se); 
	}
	
	public void removeEventFromSchedule(ScheduleEntry schedule){
		schedule.cancelEntry();
	}

}
